<include file="__THEME__/header" />
<link href="../Public/css/space.css" rel="stylesheet" type="text/css" />
<div class="contents lbg B"> <include file="../Public/home_left" />
<script>
	//删除通知
	function delNotify(id){
		$.post("{:U('home/Message/setnotify')}",{id:id,type:'dodel'},function(txt){
			if(txt){
				$("#notify_"+id).slideUp("fast",function(){
					$(this).remove();
				});
			}else{
				alert("{:L('delete_failed')}");
			}
		});
	}
/*	
	function setNotifyRead(id){
		$.post('index.php?mod=message&act=setnotify',{id:id,type:'setread'},function(txt){	
			if(txt){
				$("#isread_"+id).html('<font color="red">已读</font>');
			}else{
				alert('设置失败失败');
			}
		});
	}
*/
</script>
  <div class="contents_min w787">
  <h3 class="tit_h3">{:L('msg_center')}</h3>
    <div class="write_info">
      <div class="tab">
        <!-- 切换标签 begin  -->
        <ul>
           <li class="on">
            <span><a href="{:U('home/Message/index','type=notify')}">{:L('notify')}</a></span>
          </li>
          <li>
            <span><a href="{:U('home/Message/index','type=inceptbox')}">{:L('inbox')}</a></span>
          </li>
          <li>
            <span><a href="{:U('home/Message/index','type=sendbox')}">{:L('outbox')}</a></span>
          </li>
          <li>
            <span><a href="{:U('home/Message/index','type=send')}">{:L('msg_write')}</a></span>
          </li>
        </ul>
      </div>
      <div>
      <div class="sidebar_R">
      	<dl class="FSort mt20">
        	<dt>{:L('msg_view')}</dt>
            <dd <eq name='t' value='unread'>class="ic"</eq> ><a href="{:U('home/Message/notify','t=unread')}">{:L('unread')}</a></dd>
            <dd <eq name='t' value='isread'>class="ic"</eq> ><a href="{:U('home/Message/notify','t=isread')}">{:L('read')}</a></dd>
        </dl>
      </div>
        <div class="FList mt10">
      <ul>
<volist id="vo" name="notify['data']">
	  <li class="Fli" id="notify_{$vo.id}">
          <div class="headpic50 L"><a href="{:U('space/View/','uid='.$vo['uid'])}"><img src="{$vo.uid|getUserFace}" /></a></div>
          <div class="LC f12">
            <p>
            <a class="del" href="javascript:void()" onclick="delNotify({$vo.id})">{:L('delete')}</a><em class="R">{$vo.cTime|friendlyDate}</em>
            {$vo.title}</p>
             {$vo.body}
          </div>
          <div class="C"></div>
        </li>
        </volist>
      </ul>
      <p class="page alR mb20 mt5"> {$notify['html']} </p>
      </div>
      </div>
      <div class="C"></div>
      </div>
    </div>
    <div class="C"></div>
  </div>
<include file="__THEME__/footer" /> 